package com.designpattern.facade;

/**
 * 项目名称: java_algorithm
 * @ClassName FacadeTest
 * @Description 门面模式
 * @Author huipanxing huipanxing@chinasofti.com   @Date 2021/9/9 15:05
 */
public class FacadeTest {

    public static void main(String[] args) {
        Client1 client1=new Client1();
        client1.doSomeThing();
    }

}

class Client1{

    Facade facade=new Facade();
    public void doSomeThing(){
        facade.doSomeThingFacade();
    }

}

class Facade{
    public void doSomeThingFacade(){
        System1.method();
        System2.method();
        System3.method();
    }
}

class System1{
    public static void method(){
        System.out.println("system1.method");
    }
}
class System2{
    public static void method(){
        System.out.println("system2.method");
    }
}
class System3{
    public static void method(){
        System.out.println("system3.method");
    }
}